/* 去掉浏览器页面默认样式 */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    height: 100%;
}

body{
    background-image: url(../img/bg.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

}

.nav{
    width: 100%;

    height: 50px;
    background-color: rgba(51,51,51,0.4);
    color: white;
    /* 导航栏内部的内容, 都是一行排列的. 就需要使用 flex 布局来进行操作 */
    display: flex;
    /* 实现子元素垂直居中效果 */
    align-items: center;
}

.nav img{
    width: 40px;
    height: 40px;
    border-radius: 50%;

    margin-left: 30px;
    margin-right: 10px;
}

.nav .spacer{

    width: 31%;
}

.nav a{
    color: black;
    text-decoration: none;
    padding: 0 10px;
    height: 50px;
    line-height: 50px;
    background-color: #cbf0ff;
    margin: 2px;
}

.nav a:hover {
    background-color: black;
    color: white;
}

/* 版心相关样式 */
.container{
    /* 当前版心并不是和窗口一样宽的 */
    width: 1200px;
    height: calc(100% - 50px);

    /* 水平居中 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.container .left{
    height: 100%;
    width: 200px;
    margin: 0 5px;
}
.container .middle{
    height: 100%;
    width: 770px;
    margin: 0 5px;

    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;

    overflow: auto;



}
.container .right{
    height: 500px;
    width: 200px;
    background-color: azure;
    border-radius: 10px;
}


/* 实现card部分样式 */
.card{
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;



    padding: 30px;
}

.card img{
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.card h3{
    text-align: center;
    padding: 10px;
}

.card a{
    /* a 默认是行内元素. 行内元素的很多边距不生效，故设为块级元素. */
    display: block;
    text-align: center;
    text-decoration: none;
    color: #999;
    padding: 10px;
}

.card .counter{
    display: flex;
    justify-content: space-around;
    padding: 5px;
}

.timezone{
    width: 186px;
    height: 157px;
    background: #adadad5e;
    margin: 150px auto;
    text-align: center;
    border-radius: 10px;
}
